package com.ssyt.store.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssyt.store.sys.dao.StoreTicketDao;
import com.ssyt.store.sys.entity.StoreTicket;
import com.ssyt.store.sys.service.StoreTicketService;

@Service
public class StoreTicketServiceImpl implements StoreTicketService {
	@Autowired
	private StoreTicketDao storeTicketDao;

	@Override
	public String addStoreTicket(StoreTicket storeTicket) {
		storeTicket.setState((byte)1);
		return storeTicketDao.addStoreTicket(storeTicket);
	}

	@Override
	public void deleteStoreTicket(String id) {
		// TODO Auto-generated method stub

	}

	@Override
	public StoreTicket getStoreTicket(String id) {
		return storeTicketDao.getStoreTicket(id);
	}

}
